import axios from 'axios'

export default {
    login({commit}, params) {
        return axios.post('/api/login',params)
    },
    loginOut({commit}, params) {
        return axios.post('/api/logout',params)
    },
    getLabelList({commit}, params){
        return axios.post('/api/label/list')
    },
    register({commit}, params){
        return axios.post('/api/signin', params)
    },
    getUserInfo({commit}, params){
        return axios.post('/api/userinfo/get', params)
    },
    getImageList({commit}, params){
        return axios.post('/api/image/list', params)
    },
    getMyLabelList({commit}, params){
        return axios.post('/api/my_label/get', params)
    },
    setMyLabel({commit}, params){
        return axios.post('/api/my_label/set', params)
    },
}